<?php include 'frame-top.php'; ?>

<div class="segm" style="border-bottom:1px solid #ccc;">
	<h2><?php
		$titl='详细信息：';
		if ($this->private) {
			$btn1='edit_notice('.$this->data['NId'].');';
			$btn2='del_notice('.$this->data['NId'].');';
		}
		else {
			$btn1='edit_news('.$this->data['NId'].');';
			$btn2='del_news('.$this->data['NId'].');';
		}
		echo $titl;
		if (auth::check(auth::EDIT_MEMBER))
			echo "<input type='button' value='edit' onclick='$btn1'>".
				" <input type='button' value='del' onclick='$btn2'>";
		?></h2>
</div>

<?php if (auth::check(auth::PRIV_STUDENT) || !$this->private) : ?>

<div class="segm">
<table class="edu">

	<tr><td width="8%">标题：</td>
		<td width="92%"><?=$this->data['Title'];?></td>
	</tr>
	<tr><td width="8%">时间：</td>
		<td width="92%"><?=$this->data['PostTime'];?> / 发布人：
			<?=$this->data['Teacher'];?>
		</td>
	</tr>
	<tr><td>内容：</td>
		<td><div style="width:100%;overflow:auto;"><?=$this->data['Content'];?></div></td>
	</tr>
</table>
</div>

<?php else: ?>

<p>你当前的权限不够，不能浏览，请先登录。</p>

<?php endif; ?>

<?php include 'frame-bottom.php'; ?>
